package org.caijin.springrabbitMQ.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "fanout.c")
public class FanoutCConsumer {
    @RabbitHandler
    public void received(String message) {
        System.out.println("[fanout.c] received message:" + message);
    }
}
